# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models
from django.utils import timezone
from django.conf import settings

# Create your models here.
class UserManager(models.Model):
    user_id = models.AutoField(primary_key=True)
    user_account = models.CharField(max_length=32, unique=True, null=False)
    user_email = models.CharField(max_length=20, null=True)
    user_pwd = models.CharField(max_length=12, null=False)
    user_avatar = models.ImageField(upload_to='user/avatar/',max_length=50, null=True, default='/static/user/avatar/avatar.jpg')
    is_delete = models.BooleanField(default=False)
    create_time = models.DateTimeField(default=timezone.now)
    update_time = models.DateTimeField(auto_now=True)
    user_profile = models.CharField(max_length=30, null=True)